﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000685 RID: 1669
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetChessRogueBuffEnhanceInfoScRsp : IMessage<GetChessRogueBuffEnhanceInfoScRsp>, IMessage, IEquatable<GetChessRogueBuffEnhanceInfoScRsp>, IDeepCloneable<GetChessRogueBuffEnhanceInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001590 RID: 5520
		// (get) Token: 0x06004B55 RID: 19285 RVA: 0x000CECA3 File Offset: 0x000CCEA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetChessRogueBuffEnhanceInfoScRsp> Parser
		{
			get
			{
				return GetChessRogueBuffEnhanceInfoScRsp._parser;
			}
		}

		// Token: 0x17001591 RID: 5521
		// (get) Token: 0x06004B56 RID: 19286 RVA: 0x000CECAA File Offset: 0x000CCEAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetChessRogueBuffEnhanceInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001592 RID: 5522
		// (get) Token: 0x06004B57 RID: 19287 RVA: 0x000CECBC File Offset: 0x000CCEBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetChessRogueBuffEnhanceInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06004B58 RID: 19288 RVA: 0x000CECC3 File Offset: 0x000CCEC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChessRogueBuffEnhanceInfoScRsp()
		{
		}

		// Token: 0x06004B59 RID: 19289 RVA: 0x000CECCC File Offset: 0x000CCECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChessRogueBuffEnhanceInfoScRsp(GetChessRogueBuffEnhanceInfoScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.buffEnhanceInfo_ = ((other.buffEnhanceInfo_ != null) ? other.buffEnhanceInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004B5A RID: 19290 RVA: 0x000CED18 File Offset: 0x000CCF18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChessRogueBuffEnhanceInfoScRsp Clone()
		{
			return new GetChessRogueBuffEnhanceInfoScRsp(this);
		}

		// Token: 0x17001593 RID: 5523
		// (get) Token: 0x06004B5B RID: 19291 RVA: 0x000CED20 File Offset: 0x000CCF20
		// (set) Token: 0x06004B5C RID: 19292 RVA: 0x000CED28 File Offset: 0x000CCF28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001594 RID: 5524
		// (get) Token: 0x06004B5D RID: 19293 RVA: 0x000CED31 File Offset: 0x000CCF31
		// (set) Token: 0x06004B5E RID: 19294 RVA: 0x000CED39 File Offset: 0x000CCF39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffEnhanceList BuffEnhanceInfo
		{
			get
			{
				return this.buffEnhanceInfo_;
			}
			set
			{
				this.buffEnhanceInfo_ = value;
			}
		}

		// Token: 0x06004B5F RID: 19295 RVA: 0x000CED42 File Offset: 0x000CCF42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetChessRogueBuffEnhanceInfoScRsp);
		}

		// Token: 0x06004B60 RID: 19296 RVA: 0x000CED50 File Offset: 0x000CCF50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetChessRogueBuffEnhanceInfoScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.BuffEnhanceInfo, other.BuffEnhanceInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004B61 RID: 19297 RVA: 0x000CEDA0 File Offset: 0x000CCFA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.buffEnhanceInfo_ != null)
			{
				num ^= this.BuffEnhanceInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004B62 RID: 19298 RVA: 0x000CEDF5 File Offset: 0x000CCFF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004B63 RID: 19299 RVA: 0x000CEDFD File Offset: 0x000CCFFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004B64 RID: 19300 RVA: 0x000CEE08 File Offset: 0x000CD008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.buffEnhanceInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.BuffEnhanceInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004B65 RID: 19301 RVA: 0x000CEE64 File Offset: 0x000CD064
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.buffEnhanceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BuffEnhanceInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004B66 RID: 19302 RVA: 0x000CEEBC File Offset: 0x000CD0BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetChessRogueBuffEnhanceInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.buffEnhanceInfo_ != null)
			{
				if (this.buffEnhanceInfo_ == null)
				{
					this.BuffEnhanceInfo = new ChessRogueBuffEnhanceList();
				}
				this.BuffEnhanceInfo.MergeFrom(other.BuffEnhanceInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004B67 RID: 19303 RVA: 0x000CEF24 File Offset: 0x000CD124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004B68 RID: 19304 RVA: 0x000CEF30 File Offset: 0x000CD130
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					if (num != 32U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.buffEnhanceInfo_ == null)
					{
						this.BuffEnhanceInfo = new ChessRogueBuffEnhanceList();
					}
					input.ReadMessage(this.BuffEnhanceInfo);
				}
			}
		}

		// Token: 0x04001DDF RID: 7647
		private static readonly MessageParser<GetChessRogueBuffEnhanceInfoScRsp> _parser = new MessageParser<GetChessRogueBuffEnhanceInfoScRsp>(() => new GetChessRogueBuffEnhanceInfoScRsp());

		// Token: 0x04001DE0 RID: 7648
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001DE1 RID: 7649
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04001DE2 RID: 7650
		private uint retcode_;

		// Token: 0x04001DE3 RID: 7651
		public const int BuffEnhanceInfoFieldNumber = 3;

		// Token: 0x04001DE4 RID: 7652
		private ChessRogueBuffEnhanceList buffEnhanceInfo_;
	}
}
